<template>
  <div class="main">
    <el-row>
      <el-col :span="18" class="title">
        <div class="info"><span class="t">欢迎来到oi后台管理系统</span><span @click="$router.replace('/home')">返回商场</span></div>
      </el-col>
    </el-row>
    <el-row class="tab">
      <div class="tabinfo">
        <el-col :span="6" class="tabs">
          <div class="imgs">
            <img src="/images/oi.png" alt="">
          </div>
          <el-menu default-active="/adminmain/info" text-color='bolck' active-text-color='#797992' class="menu" router>
            <el-menu-item index="/adminmain/info" class="item">
              <i class="el-icon-setting"></i>
              <span slot="title">商品信息</span>
            </el-menu-item>
            <el-menu-item index="/adminmain/admingosear">
              <i class="el-icon-setting"></i>
              <span slot="title">商品上架</span>
            </el-menu-item>
            <el-menu-item index="/adminmain/admingly">
              <i class="el-icon-setting"></i>
              <span slot="title">用户管理</span>
            </el-menu-item>
               <el-menu-item index="/adminmain/adminpl">
              <i class="el-icon-setting"></i>
              <span slot="title">网站评论</span>
            </el-menu-item>
          </el-menu>
        </el-col>
        <el-col :span="18" class="right">
          <router-view></router-view>
        </el-col>
      </div>

    </el-row>

  </div>
</template>

<script>
export default {}
</script>

<style scoped lang='less'>
.main {
  height: 100vh;

  .title {
    width: 100%;
    float: right;
    background: #323233;
    height: 5vh;
    color: #797992;
    line-height: 5vh;
    font-size: 19px;
    .info {
      display: flex;
      justify-content: space-between;
      .t {
        padding-left: 50%;
      }
    }
  }
  .tab {
    height: 95vh;

    border-right: 1px solid #e6e6e6;
    .tabinfo {
      display: flex;

      .tabs {
        height: 95vh;



        border-right: 1px solid #e6e6e6;
        .imgs {
          text-align: center;
          img {
            height: 150px;
            width: 150px;
          }
        }
        .menu {
          flex: 1;

          .item {
            margin-top: 20%;
          }
        }
      }
    }
  }
}
.el-menu-item.is-active {
  background: #323233;
}
/deep/.el-menu-item.is-active {
  color: none;
}
/deep/.el-menu-item:active .el-menu-item:hover {
  background: red;
  color: black;
}

/deep/.el-menu-item {
  background-color: transparent;
}
</style>